ComponentOne FinancialChart for WPF
C1.WPF Namespace / C1PropertyPathHelper Class / CreateSelector Method / CreateSelector<X>(Type,String) Method
The type of the objects that will be passed to the resulting function.
The path that will be evaluated.



In This Topic
    CreateSelector<X>(Type,String) Method
    In This Topic
    Creates a function that when called execute the path expression over the specified object.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreateSelector(Of X)( _
       ByVal type As Type, _
       ByVal path As String _
    ) As Func(Of Object,X)
    'Usage
     
    
    Dim type As Type
    Dim path As String
    Dim value As Func(Of Object,X)
     
    value = C1PropertyPathHelper.CreateSelector(Of X)(type, path)
    public static Func<object,X> CreateSelector<X>( 
       Type type,
       string path
    )
    public:
    static Func<Object^,X^>^ CreateSelectorgeneric<typename X>
    ( 
       Type^ type,
       String^ path
    ) 

    Parameters

    type
    The type of the objects that will be passed to the resulting function.
    path
    The path that will be evaluated.

    Type Parameters

    X
    Remarks
    The object type passed in the resulting function must be the same as the specified in this method, otherwise an exception will be thrown.
    See Also